/**
 * Created by feifan.gou@gamil.com on 2025/4/23 15:14.
 */
import {defineStore} from 'pinia'

export const useGlobalConstants = defineStore('global', {
    state: () => ({
        MOBILE_REGEX: /^\d{11}$/,
        CAPTCHA_REGEX: /^\d{6}$/,
        TABLE_LOADING_SVG: `
        <path class="path" d="
          M 30 15
          L 28 17
          M 25.61 25.61
          A 15 15, 0, 0, 1, 15 30
          A 15 15, 0, 1, 1, 27.99 7.5
          L 15 15
        " style="stroke-width: 4px; fill: rgba(0, 0, 0, 0)"/>
      `
    })
})